package org.association.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.association.entity.OrgUserStats;
import org.association.entity.OrganizationEntity;

import java.util.List;


/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2024-07-18 17:00:07
 */
public interface OrganizationService extends IService<OrganizationEntity> {

    boolean addMember(Integer organizationID, String privateKey);

    int quitMember(Integer organizationID, String privateKey);

    boolean userOrgExist(String privateKey);

    List<String> getUsersByOrganizationID(Integer organizationID);

    List<OrgUserStats> getOrgUserStats();

    Integer getOrgIdByPrimaryKey(String primaryKey);
}

